{"componentChunkName":"component---node-modules-gatsby-theme-chronoblog-src-templates-post-js","path":"/switchbot-door-contact-and-motion-sensor-review/","result":{"data":{"mdx":{"id":"034d088f-3a4e-5a6a-b0c1-e53cd2f64a33","excerpt":"SwitchBot added unique door contact and motion sensors to their smart home lineup and this article will go over how to use them to create…","frontmatter":{"title":"Reviewing SwitchBot door contact and motion sensor home automation","date":"2021-10-11T00:00:00.000Z","description":"In this review I'll use SwitchBot door contact and motion sensors to setup smart home automation routines using Amazon Alexa and the SwitchBot app to turn on lights when I open the door or shut lights off when occupancy isn't detected in the room.","tags":["switchbot","smart home","iot","post"],"cover":{"childImageSharp":{"fluid":{"base64":"data:image/jpeg;base64,/9j/2wBDAAMCAgMCAgMDAwMEAwMEBQgFBQQEBQoHBwYIDAoMDAsKCwsNDhIQDQ4RDgsLEBYQERMUFRUVDA8XGBYUGBIUFRT/2wBDAQMEBAUEBQkFBQkUDQsNFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBT/wgARCAAOABQDASIAAhEBAxEB/8QAGAAAAwEBAAAAAAAAAAAAAAAAAAUHBAb/xAAVAQEBAAAAAAAAAAAAAAAAAAACA//aAAwDAQACEAMQAAABV9/MnkngJGGX/8QAGhAAAwADAQAAAAAAAAAAAAAAAwQFAAEGAv/aAAgBAQABBQKEPSU72MhwnTHUyJSaczo6rHP7d6g5D//EABkRAQACAwAAAAAAAAAAAAAAAAEAERITQf/aAAgBAwEBPwHUpTMa7P/EABYRAQEBAAAAAAAAAAAAAAAAAAEAEv/aAAgBAgEBPwFSy3//xAAiEAACAgICAQUBAAAAAAAAAAABAgMRABIEMSIhI1JhcYH/2gAIAQEABj8Cd3BIHWo9auskj45jbVdlZ1on9xOQrwygr2i0PvOFFCyQx+WzFbYjvIwHE6z3fjrY/hwmH2E+C9Z//8QAHBABAAIDAAMAAAAAAAAAAAAAAQARITFRQZGx/9oACAEBAAE/IX1PizkRrKaf118jRAysCaa7cVAtMtDrdYt9wykANvFbBx4g/PYwZ//aAAwDAQACAAMAAAAQEA//xAAZEQADAQEBAAAAAAAAAAAAAAABESEAMZH/2gAIAQMBAT8QQkRFkw5N7v/EABoRAAICAwAAAAAAAAAAAAAAAAABESExkeH/2gAIAQIBAT8QeVT0UGXs/8QAGxABAQEAAwEBAAAAAAAAAAAAAREhADFBUWH/2gAIAQEAAT8QVcsHRkCFaLmQ5hjBcAyHe6mY/eML/vCSINDviNAW3SAgVEfiq4cf01egOATFWnZ2PThHvDUz29+8/9k=","aspectRatio":1.4222222222222223,"src":"/static/c352b32602dc70718cefc20a6f02df5b/3e61c/switchbot-motion-contact-banner.jpg","srcSet":"/static/c352b32602dc70718cefc20a6f02df5b/7fcb3/switchbot-motion-contact-banner.jpg 192w,\n/static/c352b32602dc70718cefc20a6f02df5b/42594/switchbot-motion-contact-banner.jpg 384w,\n/static/c352b32602dc70718cefc20a6f02df5b/3e61c/switchbot-motion-contact-banner.jpg 768w","srcWebp":"/static/c352b32602dc70718cefc20a6f02df5b/dd090/switchbot-motion-contact-banner.webp","srcSetWebp":"/static/c352b32602dc70718cefc20a6f02df5b/ae504/switchbot-motion-contact-banner.webp 192w,\n/static/c352b32602dc70718cefc20a6f02df5b/fef30/switchbot-motion-contact-banner.webp 384w,\n/static/c352b32602dc70718cefc20a6f02df5b/dd090/switchbot-motion-contact-banner.webp 768w","sizes":"(max-width: 768px) 100vw, 768px","presentationWidth":768,"presentationHeight":538},"resize":{"src":"/static/c352b32602dc70718cefc20a6f02df5b/3e61c/switchbot-motion-contact-banner.jpg"}}}},"fields":{"slug":"/switchbot-door-contact-and-motion-sensor-review/"},"body":"var _excluded = [\"components\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n/* @jsxRuntime classic */\n/* @jsx mdx */\n\nvar _frontmatter = {\n  \"title\": \"Reviewing SwitchBot door contact and motion sensor home automation\",\n  \"cover\": \"./switchbot-motion-contact-banner.jpg\",\n  \"date\": \"2021-10-11T00:00:00.000Z\",\n  \"description\": \"In this review I'll use SwitchBot door contact and motion sensors to setup smart home automation routines using Amazon Alexa and the SwitchBot app to turn on lights when I open the door or shut lights off when occupancy isn't detected in the room.\",\n  \"tags\": [\"switchbot\", \"smart home\", \"iot\", \"post\"]\n};\nvar makeShortcode = function makeShortcode(name) {\n  return function MDXDefaultShortcode(props) {\n    console.warn(\"Component \" + name + \" was not imported, exported, or provided by MDXProvider as global scope\");\n    return mdx(\"div\", props);\n  };\n};\nvar Embed = makeShortcode(\"Embed\");\nvar layoutProps = {\n  _frontmatter: _frontmatter\n};\nvar MDXLayout = \"wrapper\";\nreturn function MDXContent(_ref) {\n  var components = _ref.components,\n    props = _objectWithoutProperties(_ref, _excluded);\n  return mdx(MDXLayout, _extends({}, layoutProps, props, {\n    components: components,\n    mdxType: \"MDXLayout\"\n  }), mdx(\"p\", null, \"SwitchBot added unique door contact and motion sensors to their smart home lineup and this article will go over how to use them to create smart home routines to control lights based on your doors opening or sensing room occupancy or the lack thereof. \"), mdx(\"p\", null, \"These sensors are unique because the door contact sensor, for example, includes a motion sensor and ambient light sensor in addition to the standard contact sensor.\"), mdx(\"blockquote\", null, mdx(\"p\", {\n    parentName: \"blockquote\"\n  }, \"This gives the contact sensor the ability to create more intelligent routines based on secondary criteria based on ambient light or if the room is occupied.\")), mdx(\"p\", null, \"I'm excited for the stand alone motion sensor because I can put them in bedrooms and have it work with my TP-Link Kasa light switches (or other smart switches) to shut the lights off when people forget to using Alexa routines.\"), mdx(\"p\", null, \"In the remainder of this article I'll go over the features of the SwitchBot door contact and motion sensors and how I set them up and installed them using Amazon Alexa and the SwitchBot app.\"), mdx(\"p\", null, \"If you prefer to see the video version of the \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://youtu.be/GtLAb6aMnvQ\"\n  }, \"SwitchBot review\"), \" you can watch that below or continue reading.\"), mdx(Embed, {\n    src: \"https://www.youtube.com/embed/GtLAb6aMnvQ\",\n    mdxType: \"Embed\"\n  }), mdx(\"p\", null, mdx(\"em\", {\n    parentName: \"p\"\n  }, \"As an Amazon Associate I earn from qualifying purchases made from links on the site which is a great way to support it if you are interested in purchasing any of the SwitchBot products mentioned.\")), mdx(\"h2\", {\n    \"id\": \"switchbot-contact-sensor\"\n  }, \"SwitchBot Contact Sensor\"), mdx(\"p\", null, \"The SwitchBot \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://amzn.to/2WtbSC7\"\n  }, \"contact sensors\"), \" can mount on things like doors, drawers, and cabinets so when they are opened and closed you can trigger home automation routines.\"), mdx(\"span\", {\n    \"className\": \"gatsby-resp-image-wrapper\",\n    \"style\": {\n      \"position\": \"relative\",\n      \"display\": \"block\",\n      \"marginLeft\": \"auto\",\n      \"marginRight\": \"auto\",\n      \"maxWidth\": \"640px\"\n    }\n  }, \"\\n      \", mdx(\"span\", {\n    parentName: \"span\",\n    \"className\": \"gatsby-resp-image-background-image\",\n    \"style\": {\n      \"paddingBottom\": \"75.1219512195122%\",\n      \"position\": \"relative\",\n      \"bottom\": \"0\",\n      \"left\": \"0\",\n      \"backgroundImage\": \"url('data:image/jpeg;base64,/9j/2wBDAAMCAgMCAgMDAwMEAwMEBQgFBQQEBQoHBwYIDAoMDAsKCwsNDhIQDQ4RDgsLEBYQERMUFRUVDA8XGBYUGBIUFRT/2wBDAQMEBAUEBQkFBQkUDQsNFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBT/wgARCAAPABQDASIAAhEBAxEB/8QAFwAAAwEAAAAAAAAAAAAAAAAAAAQGB//EABQBAQAAAAAAAAAAAAAAAAAAAAT/2gAMAwEAAhADEAAAAanPVUQO0kjgqP/EABoQAAIDAQEAAAAAAAAAAAAAAAQFAQMGAhb/2gAIAQEAAQUCQSMxDkOeXK7JHk0UaqPRPXNWhIC0JAtH/8QAGxEAAgIDAQAAAAAAAAAAAAAAAQIAAwQRMVH/2gAIAQMBAT8BU2rYQnDN5Hs//8QAGhEAAgIDAAAAAAAAAAAAAAAAAgMAARFCUv/aAAgBAgEBPwEqUSxI9ZhHM//EACEQAAIBBAICAwAAAAAAAAAAAAIDAQAEESETURIiMTJB/9oACAEBAAY/AnouURNwJYImbPE/uZptg+44Gx9JxouqkjwBQWMTNNvH+S0HG+ONx1SGpSSeHUNIvcq44afz3X//xAAdEAEAAgICAwAAAAAAAAAAAAABABEhcTFBYaHB/9oACAEBAAE/IXUs8TmS4+RU4W7I7aTMvgA/Z1EqOKFggS7ayjdl6eNw9SCbbKz/2gAMAwEAAgADAAAAEFTP/8QAGhEAAgIDAAAAAAAAAAAAAAAAASEAMVFhsf/aAAgBAwEBPxBJzVQOuQ4c/8QAGREAAgMBAAAAAAAAAAAAAAAAASEAMWGx/9oACAECAQE/EHgFHZG9mqf/xAAcEAEBAQEAAgMAAAAAAAAAAAABESEAMVFBYXH/2gAIAQEAAT8QGNXtgoSXUjkcDYZZcW1JBjfM0eT0VkWBj2rR+TeOqiokWBIro/v1wlLzKQzho+lHDhoVtSqre//Z')\",\n      \"backgroundSize\": \"cover\",\n      \"display\": \"block\"\n    }\n  }), \"\\n  \", mdx(\"img\", {\n    parentName: \"span\",\n    \"className\": \"gatsby-resp-image-image\",\n    \"alt\": \"Switchbot door contact sensor\",\n    \"title\": \"Switchbot door contact sensor\",\n    \"src\": \"/static/c85bb6fe777a9d78111946d09391d738/bbe0c/switchbot-door-contact.jpg\",\n    \"srcSet\": [\"/static/c85bb6fe777a9d78111946d09391d738/bd2b6/switchbot-door-contact.jpg 205w\", \"/static/c85bb6fe777a9d78111946d09391d738/ceeba/switchbot-door-contact.jpg 410w\", \"/static/c85bb6fe777a9d78111946d09391d738/bbe0c/switchbot-door-contact.jpg 640w\"],\n    \"sizes\": \"(max-width: 640px) 100vw, 640px\",\n    \"style\": {\n      \"width\": \"100%\",\n      \"height\": \"100%\",\n      \"margin\": \"0\",\n      \"verticalAlign\": \"middle\",\n      \"position\": \"absolute\",\n      \"top\": \"0\",\n      \"left\": \"0\"\n    },\n    \"loading\": \"lazy\"\n  }), \"\\n    \"), mdx(\"p\", null, \"If you are using various smart assistants like Alexa, Google Assistant, or Siri you can speak voice commands like\"), mdx(\"blockquote\", null, mdx(\"p\", {\n    parentName: \"blockquote\"\n  }, \"Hey \", \"[\", \" Alexa, Google, Siri \", \"]\", \" is the \", \"[\", \" name here \", \"]\", \" door opened?\")), mdx(\"p\", null, \"You can also integrate it with your other SwitchBot devices like their \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://amzn.to/3At6Nro\"\n  }, \"curtain-opener\"), \", \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"../smart-switch-no-neutral-using-switchbot/\"\n  }, \"bot (button pusher)\"), \", and indoor camera. You can use the contact sensor to initiate routines like closing the curtains when you leave the house or turn on a light when you open the door when entering your house.\"), mdx(\"p\", null, \"You can go a step further and setup a smart home routine with secondary criteria like\"), mdx(\"p\", null, mdx(\"em\", {\n    parentName: \"p\"\n  }, \"IF\"), \" the door is opened \", mdx(\"em\", {\n    parentName: \"p\"\n  }, \"AND\"), \" it's dark inside \", mdx(\"em\", {\n    parentName: \"p\"\n  }, \"THEN\"), \" turn on the light \", mdx(\"em\", {\n    parentName: \"p\"\n  }, \"ELSE\"), \" don't do anything\"), mdx(\"p\", null, \"because the SwitchBot contact sensor includes a light sensor so it can tell how bright it is in the room you place it.\"), mdx(\"p\", null, \"You can also help SwitchBot differentiate between a normal door open and close with leaving the house for example by using the physical button it has on the face. You can press that when you enter or leave the house to make an even more complex routine like\"), mdx(\"p\", null, mdx(\"em\", {\n    parentName: \"p\"\n  }, \"IF\"), \" the door is opened \", mdx(\"em\", {\n    parentName: \"p\"\n  }, \"AND\"), \" the contact button is pushed \", mdx(\"em\", {\n    parentName: \"p\"\n  }, \"AND\"), \" it's dark \", mdx(\"em\", {\n    parentName: \"p\"\n  }, \"THEN\"), \" turn on the outside lights \", mdx(\"em\", {\n    parentName: \"p\"\n  }, \"ELSE\"), \" don't do anything\"), mdx(\"p\", null, \"As far as mounting it is pretty flexible. It comes in two pieces; the sensor and contact magnet. You can stick them slightly apart on a fixed and moving surface like the door frame and door using 3m adhesive or screws.\"), mdx(\"h2\", {\n    \"id\": \"switchbot-motion-sensor\"\n  }, \"SwitchBot Motion Sensor\"), mdx(\"p\", null, \"I've always wanted my smart light switches to also include an occupancy or vacancy sensor, but at least in my case I found the idea is problematic because where my switches are located they don't have a good view of the room. Consequently, light switches with motion sensors fail to detect people in the room and shut the lights off on them.\"), mdx(\"blockquote\", null, mdx(\"p\", {\n    parentName: \"blockquote\"\n  }, \"The \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://amzn.to/38oreu0\"\n  }, \"SwitchBot motion sensor\"), \" allows for placement of the sensor in the room wherever it makes most sense for coverage.\")), mdx(\"p\", null, \"So now, I can put the SwitchBot motion sensor in a bedroom corner where it can pickup motion in the entire room, and setup an Alexa routine to switch off my \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"../tplink-kasa-light-switch-hs200/\"\n  }, \"TP-Link Kasa light switch\"), \" when no motion is detected after 5 minutes for example.\"), mdx(\"span\", {\n    \"className\": \"gatsby-resp-image-wrapper\",\n    \"style\": {\n      \"position\": \"relative\",\n      \"display\": \"block\",\n      \"marginLeft\": \"auto\",\n      \"marginRight\": \"auto\",\n      \"maxWidth\": \"640px\"\n    }\n  }, \"\\n      \", mdx(\"span\", {\n    parentName: \"span\",\n    \"className\": \"gatsby-resp-image-background-image\",\n    \"style\": {\n      \"paddingBottom\": \"75.1219512195122%\",\n      \"position\": \"relative\",\n      \"bottom\": \"0\",\n      \"left\": \"0\",\n      \"backgroundImage\": \"url('data:image/jpeg;base64,/9j/2wBDAAMCAgMCAgMDAwMEAwMEBQgFBQQEBQoHBwYIDAoMDAsKCwsNDhIQDQ4RDgsLEBYQERMUFRUVDA8XGBYUGBIUFRT/2wBDAQMEBAUEBQkFBQkUDQsNFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBT/wgARCAAPABQDASIAAhEBAxEB/8QAGAAAAgMAAAAAAAAAAAAAAAAAAAYEBQf/xAAXAQADAQAAAAAAAAAAAAAAAAAAAQID/9oADAMBAAIQAxAAAAFjmYswYO8EwI//xAAdEAABBAIDAAAAAAAAAAAAAAAEAAEDBQIUBhIT/9oACAEBAAEFAos+qzutaQzkewYHaSe9xNG5TlHOv//EABgRAAMBAQAAAAAAAAAAAAAAAAABEgMx/9oACAEDAQE/AdFXSUf/xAAXEQADAQAAAAAAAAAAAAAAAAAAAQIR/9oACAECAQE/AXKcYYf/xAAjEAACAQMDBAMAAAAAAAAAAAABAwIABBEFEiEUMkFRYZPB/9oACAEBAAY/AiR4GeKU26kxnO1YWs5Jx6FOadO1CO8jttj6A/KVJ14yKycEiots7ls1x5G4nMD8Vnqn/ZX/xAAbEAEBAAIDAQAAAAAAAAAAAAABEQAhMUFRof/aAAgBAQABPyFFUrwK5KY3IqsjeBzfLACEO44JsSCs81kWZQMMad9/cTpL7Wf/2gAMAwEAAgADAAAAEAjv/8QAFxEBAQEBAAAAAAAAAAAAAAAAAQARIf/aAAgBAwEBPxDekCM7f//EABoRAAICAwAAAAAAAAAAAAAAAAABESExUWH/2gAIAQIBAT8QsWHtZOz/xAAcEAEBAQEAAgMAAAAAAAAAAAABESEAMUFRodH/2gAIAQEAAT8QBEb1Keg9sXOtwITzZrbomTXlJJ2nQSg6+uIXcRheYC7PjgRai6VMaFsuizsNiItjxlsM8fvf/9k=')\",\n      \"backgroundSize\": \"cover\",\n      \"display\": \"block\"\n    }\n  }), \"\\n  \", mdx(\"img\", {\n    parentName: \"span\",\n    \"className\": \"gatsby-resp-image-image\",\n    \"alt\": \"Switchbot motion sensor\",\n    \"title\": \"Switchbot motion sensor\",\n    \"src\": \"/static/1f20e739601b1ba5321df20db3c9c3bf/bbe0c/switchbot-motion-sensor.jpg\",\n    \"srcSet\": [\"/static/1f20e739601b1ba5321df20db3c9c3bf/bd2b6/switchbot-motion-sensor.jpg 205w\", \"/static/1f20e739601b1ba5321df20db3c9c3bf/ceeba/switchbot-motion-sensor.jpg 410w\", \"/static/1f20e739601b1ba5321df20db3c9c3bf/bbe0c/switchbot-motion-sensor.jpg 640w\"],\n    \"sizes\": \"(max-width: 640px) 100vw, 640px\",\n    \"style\": {\n      \"width\": \"100%\",\n      \"height\": \"100%\",\n      \"margin\": \"0\",\n      \"verticalAlign\": \"middle\",\n      \"position\": \"absolute\",\n      \"top\": \"0\",\n      \"left\": \"0\"\n    },\n    \"loading\": \"lazy\"\n  }), \"\\n    \"), mdx(\"p\", null, \"Just like the door contact sensor, the SwitchBot motion sensor includes an ambient light sensor. This allowed me to setup a routine to turn on a light in the pass through when it is dark inside while also shutting it off if it doesn't sense any motion in the room for awhile.\"), mdx(\"p\", null, \"The motion sensor also has flexible mounting options using it's angle-adjustable magnetic pedestal base including\"), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"Stick on something magnetic\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"Place on a shelf\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"Stick on a wall with adhesive\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"Mount with screws\")), mdx(\"p\", null, \"The motion sensor also has adjustments to reduce false positives from larger pets like dogs.\"), mdx(\"h2\", {\n    \"id\": \"installation\"\n  }, \"Installation\"), mdx(\"p\", null, \"Both sensors use AAA batteries for power which are included. To pair the sensors, once the batteries are installed, you simply open the SwitchBot app and push the + sign in the top right to add a device then select your motion or contact sensor from the list.\"), mdx(\"span\", {\n    \"className\": \"gatsby-resp-image-wrapper\",\n    \"style\": {\n      \"position\": \"relative\",\n      \"display\": \"block\",\n      \"marginLeft\": \"auto\",\n      \"marginRight\": \"auto\",\n      \"maxWidth\": \"370px\"\n    }\n  }, \"\\n      \", mdx(\"span\", {\n    parentName: \"span\",\n    \"className\": \"gatsby-resp-image-background-image\",\n    \"style\": {\n      \"paddingBottom\": \"173.17073170731706%\",\n      \"position\": \"relative\",\n      \"bottom\": \"0\",\n      \"left\": \"0\",\n      \"backgroundImage\": \"url('data:image/jpeg;base64,/9j/2wBDAAMCAgMCAgMDAwMEAwMEBQgFBQQEBQoHBwYIDAoMDAsKCwsNDhIQDQ4RDgsLEBYQERMUFRUVDA8XGBYUGBIUFRT/2wBDAQMEBAUEBQkFBQkUDQsNFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBT/wgARCAAjABQDASIAAhEBAxEB/8QAGAABAQEBAQAAAAAAAAAAAAAAAAECAwj/xAAVAQEBAAAAAAAAAAAAAAAAAAAAAf/aAAwDAQACEAMQAAAB9Q2dYyypZg0BQwD/xAAbEAADAQEAAwAAAAAAAAAAAAAAAQIREgMhMf/aAAgBAQABBQJPSPEoKeFdcor6t694JLqFNJrk00pn/8QAFBEBAAAAAAAAAAAAAAAAAAAAIP/aAAgBAwEBPwFf/8QAFBEBAAAAAAAAAAAAAAAAAAAAIP/aAAgBAgEBPwFf/8QAHRAAAQQDAQEAAAAAAAAAAAAAAAECESEQMWESIP/aAAgBAQAGPwJWlYTzE9zuo0OsQ7A9L3ciJ8f/xAAfEAEAAgMAAQUAAAAAAAAAAAABABEhMVFBYXGx0fH/2gAIAQEAAT8hRg6M36x1cMVtfmIsMAoqAaLMwwKH7jsrqN08jYWba32UL+cJGFijz5ggNBRDT2giIs//2gAMAwEAAgADAAAAEKzJDPPP/8QAFhEBAQEAAAAAAAAAAAAAAAAAESAh/9oACAEDAQE/EDGv/8QAFBEBAAAAAAAAAAAAAAAAAAAAIP/aAAgBAgEBPxBf/8QAHhABAQACAgMBAQAAAAAAAAAAAREAITFBUYGRYXH/2gAIAQEAAT8Qm4QYO46coRY01PZwKLJesapwtwzR47Rw411njNmp29uMHCBIm/j5gDlkfJ5znPgvW3H3eUXI+VXSnCesFeHA6DQYxWqAsLlSIfwMG168Z//Z')\",\n      \"backgroundSize\": \"cover\",\n      \"display\": \"block\"\n    }\n  }), \"\\n  \", mdx(\"img\", {\n    parentName: \"span\",\n    \"className\": \"gatsby-resp-image-image\",\n    \"alt\": \"Switchbot app\",\n    \"title\": \"Switchbot app\",\n    \"src\": \"/static/86c02e3832b697372db1df4ad7a716f8/a1654/switchbot-app.jpg\",\n    \"srcSet\": [\"/static/86c02e3832b697372db1df4ad7a716f8/bd2b6/switchbot-app.jpg 205w\", \"/static/86c02e3832b697372db1df4ad7a716f8/a1654/switchbot-app.jpg 370w\"],\n    \"sizes\": \"(max-width: 370px) 100vw, 370px\",\n    \"style\": {\n      \"width\": \"100%\",\n      \"height\": \"100%\",\n      \"margin\": \"0\",\n      \"verticalAlign\": \"middle\",\n      \"position\": \"absolute\",\n      \"top\": \"0\",\n      \"left\": \"0\"\n    },\n    \"loading\": \"lazy\"\n  }), \"\\n    \"), mdx(\"p\", null, \"The app walks you through the rest. I highly recommend getting the \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://amzn.to/3yyqzRh\"\n  }, \"SwitchBot hub\"), \" to allow external access to your SwitchBot devices otherwise you are limited to bluetooth range of your phone for control.\"), mdx(\"h2\", {\n    \"id\": \"setting-up-switchbot-scenes\"\n  }, \"Setting up SwitchBot Scenes\"), mdx(\"p\", null, \"To setup automation using your sensors head into the SwitchBot app and select the Scenes tab. From there you can select your sensors and the app will present you with criteria you can trigger applicable to what the device can sense like motion or ambient room brightness.\"), mdx(\"p\", null, \"Here I setup a scene to trigger my SwitchBot bot to click on the kitchen light switch \", mdx(\"em\", {\n    parentName: \"p\"\n  }, \"when\"), \" the SwitchBot motion sensor detects motion in the room \", mdx(\"em\", {\n    parentName: \"p\"\n  }, \"and\"), \" the light sensor detects it is dark inside the room.\"), mdx(\"span\", {\n    \"className\": \"gatsby-resp-image-wrapper\",\n    \"style\": {\n      \"position\": \"relative\",\n      \"display\": \"block\",\n      \"marginLeft\": \"auto\",\n      \"marginRight\": \"auto\",\n      \"maxWidth\": \"480px\"\n    }\n  }, \"\\n      \", mdx(\"span\", {\n    parentName: \"span\",\n    \"className\": \"gatsby-resp-image-background-image\",\n    \"style\": {\n      \"paddingBottom\": \"104.39024390243902%\",\n      \"position\": \"relative\",\n      \"bottom\": \"0\",\n      \"left\": \"0\",\n      \"backgroundImage\": \"url('data:image/jpeg;base64,/9j/2wBDAAMCAgMCAgMDAwMEAwMEBQgFBQQEBQoHBwYIDAoMDAsKCwsNDhIQDQ4RDgsLEBYQERMUFRUVDA8XGBYUGBIUFRT/2wBDAQMEBAUEBQkFBQkUDQsNFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBT/wgARCAAVABQDASIAAhEBAxEB/8QAGQABAAIDAAAAAAAAAAAAAAAAAAQHAwUI/8QAFwEAAwEAAAAAAAAAAAAAAAAAAQIDAP/aAAwDAQACEAMQAAABsnQXdLonP67BM/OSMAZv/8QAHBAAAgMBAAMAAAAAAAAAAAAAAQIAAwQRBRMh/9oACAEBAAEFAtnh0rwnDsaNjvSepeqF4qDRCvSPkoSxB//EABoRAAICAwAAAAAAAAAAAAAAAAABAhAREiH/2gAIAQMBAT8B1HDFN9P/xAAXEQADAQAAAAAAAAAAAAAAAAAAEBIT/9oACAECAQE/AbNH/8QAIRAAAQQBAwUAAAAAAAAAAAAAAQACAxESBDFxEDIzguH/2gAIAQEABj8ChlgEr5nVY3XglPoqdDIOWrsocBbIum0+JuhnWy+dHZyB5Juw2l//xAAfEAEAAgEDBQAAAAAAAAAAAAABABEhQWFxMVGBkaH/2gAIAQEAAT8ht5M4WcViCUm5RsQ1gQhgBHF6VG0EQp4qXEigSeFPSdmzslTQSyquh/f2f//aAAwDAQACAAMAAAAQbMj8/8QAGREBAAIDAAAAAAAAAAAAAAAAAQDBEBGh/9oACAEDAQE/EEMVaXpWHU0E/8QAGBEBAAMBAAAAAAAAAAAAAAAAAQAQEUH/2gAIAQIBAT8QMQDygMn/xAAdEAEBAAMAAwEBAAAAAAAAAAABEQAhMVFhkXGx/9oACAEBAAE/EOlioANOSwzr97gOu0NN+Y1N0jSu+ebhk+A0UQTZQ2bbrBQE1H+RrNGHlc4rsVd776wQqB0iPDqjd1yOcDxq+9ZCGMEmgCCqT9a8Z//Z')\",\n      \"backgroundSize\": \"cover\",\n      \"display\": \"block\"\n    }\n  }), \"\\n  \", mdx(\"img\", {\n    parentName: \"span\",\n    \"className\": \"gatsby-resp-image-image\",\n    \"alt\": \"Switchbot app\",\n    \"title\": \"Switchbot app\",\n    \"src\": \"/static/b38655352dfb1e8377cf8b9ec1cd07b1/55489/switchbot-scene.jpg\",\n    \"srcSet\": [\"/static/b38655352dfb1e8377cf8b9ec1cd07b1/bd2b6/switchbot-scene.jpg 205w\", \"/static/b38655352dfb1e8377cf8b9ec1cd07b1/ceeba/switchbot-scene.jpg 410w\", \"/static/b38655352dfb1e8377cf8b9ec1cd07b1/55489/switchbot-scene.jpg 480w\"],\n    \"sizes\": \"(max-width: 480px) 100vw, 480px\",\n    \"style\": {\n      \"width\": \"100%\",\n      \"height\": \"100%\",\n      \"margin\": \"0\",\n      \"verticalAlign\": \"middle\",\n      \"position\": \"absolute\",\n      \"top\": \"0\",\n      \"left\": \"0\"\n    },\n    \"loading\": \"lazy\"\n  }), \"\\n    \"), mdx(\"p\", null, \"So now when someone walks into the kitchen pass-through at a dark time of the night the lights will automatically turn on for them, but if the ambient brightness of the room is bright enough it won't unnecessarily turn on the lights.\"), mdx(\"p\", null, \"If you don't want to use their app the SwitchBot is compatible with Alexa, Google Assistant, Siri, IFTTT, SmartThings, and Clova.\"), mdx(\"p\", null, \"When integrating routines with devices made by other manufacturers, like TP-Link for example, I found it easier to use Alexa to create the routine.\"), mdx(\"h2\", {\n    \"id\": \"setting-up-alexa-routines\"\n  }, \"Setting up Alexa Routines\"), mdx(\"p\", null, \"I used Alexa to setup a routine to use the SwitchBot motion sensor as a trigger for my TP-Link \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://amzn.to/3iPjneu\"\n  }, \"HS200\"), \" light switch. To setup an Alexa routine.\"), mdx(\"ol\", null, mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"Open the Alexa app\"), mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"Select More on the bottom right\"), mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"Press Routines\"), mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"Press the + icon in the upper right\"), mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"Provide a routine name\"), mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"Click the + icon next to \", mdx(\"em\", {\n    parentName: \"li\"\n  }, \"When this happens\")), mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"Select SmartHome\"), mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"Select your SwitchBot device (motion sensor for example)\"), mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"Set when \", mdx(\"em\", {\n    parentName: \"li\"\n  }, \"Motion is...\"), \" detected/not detected\"), mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"Back at the routine screen press \", mdx(\"em\", {\n    parentName: \"li\"\n  }, \"Add Action\")), mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"Select Smart Home > All Devices\"), mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"Select the TP-Link light switch (or whatever you want to control)\"), mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"Follow remaining prompts to save\")), mdx(\"h2\", {\n    \"id\": \"final-thoughts\"\n  }, \"Final Thoughts\"), mdx(\"p\", null, \"The SwitchBot motion and contact sensors allowed the extra input criteria to create some really useful automations with their existing product line up. For example, if you were using the \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://amzn.to/3oQk3nM\"\n  }, \"SwitchBot humidifier\"), \" for a bedroom you could use the motion sensor to turn it off when nobody is in the room.\"), mdx(\"p\", null, \"My favorite is the \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://amzn.to/38oreu0\"\n  }, \"motion sensor\"), \" because I can finally setup reliable vacancy-sensing routines to turn lights off around the house.\"), mdx(\"p\", null, \"Feel free to use my social links below with any questions and thanks for reading!\"));\n}\n;\nMDXContent.isMDXComponent = true;"}},"pageContext":{"id":"034d088f-3a4e-5a6a-b0c1-e53cd2f64a33"}},"staticQueryHashes":["1961101537","2542493696"]}